﻿#ifndef BASEWIDGET_PARA_H
#define BASEWIDGET_PARA_H

#include <QFlags>

namespace BaseWidget
{
    //标题栏按钮类型
    enum class ETitleBar
    {
        None = 0,    //无按钮
        Close = 1,            //关闭按钮
        Minimize = 2,        //最小化
        Maximize = 4,        //最大化
        All = Close | Minimize | Maximize,  //包含三个按钮
    };
    Q_DECLARE_FLAGS(ETitleBars, ETitleBar)
    Q_DECLARE_OPERATORS_FOR_FLAGS(ETitleBars)

    //对话框按钮类型
    enum class EDialog
    {
        None = 0,    //无按钮
        OK = 1,                //确定按钮
        Cancel = 2,            //取消按钮
    };
}

#endif // QTBASEPARA_H
